<?php

include_once("../../config_controller.php");
$host = $_SERVER['HTTP_HOST']; //取得进入所输入的域名
$theme_folder = host_theme($host);

include_once '../../front/'.$theme_folder.'/connection.php';
?>

<?php include_once("function.php"); ?>
<?php include "../../front/".$theme_folder."/config.php"; ?>

<?php

$_img_path=ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/';
$img_width_height = array('','');
	
$detail_first = select_one_line_all_items($table_Prefix . "detail",
    " belong = '".$system_part."' and publish = 1  order by nid asc ");



$first_icon_data = $detail_first['icon'] != 'alpha.gif' && $detail_first['icon'] != '' && file_exists(($_img_path.$detail_first['icon']) ) == 1  ? getimagesize($_img_path.$detail_first['icon']) : $img_width_height;
	
$first_image1_data = $detail_first['image1'] != 'alpha.gif' && $detail_first['image1'] != '' && file_exists(($_img_path.$detail_first['image1']) ) == 1 ? getimagesize($_img_path.$detail_first['image1']) : $img_width_height;
	
$first_image2_data = $detail_first['image2'] != 'alpha.gif' && $detail_first['image2']  && file_exists(($_img_path.$detail_first['image2']) ) == 1 ? getimagesize($_img_path.$detail_first['image2']) : $img_width_height;
	
$first_image3_data = $detail_first['image3'] != 'alpha.gif' && $detail_first['image3']  && file_exists(($_img_path.$detail_first['image3']) ) == 1 ? getimagesize($_img_path.$detail_first['image3']) : $img_width_height;
	
$first_image4_data = $detail_first['image4'] != 'alpha.gif' && $detail_first['image4']  && file_exists(($_img_path.$detail_first['image4']) ) == 1 ? getimagesize($_img_path.$detail_first['image4']) : $img_width_height;
	
$first_image5_data = $detail_first['image5'] != 'alpha.gif' && $detail_first['image5']  && file_exists(($_img_path.$detail_first['image5']) ) == 1 ? getimagesize($_img_path.$detail_first['image5']) : $img_width_height;
	
$first_image6_data = $detail_first['image6'] != 'alpha.gif' && $detail_first['image6']  && file_exists(($_img_path.$detail_first['image6']) ) == 1 ? getimagesize($_img_path.$detail_first['image6']) : $img_width_height;
	
$first_image7_data = $detail_first['image7'] != 'alpha.gif' && $detail_first['image7']  && file_exists(($_img_path.$detail_first['image7']) ) == 1 ? getimagesize($_img_path.$detail_first['image7']) : $img_width_height;
	
$first_image8_data = $detail_first['image8'] != 'alpha.gif' && $detail_first['image8']  && file_exists(($_img_path.$detail_first['image8']) ) == 1 ? getimagesize($_img_path.$detail_first['image8']) : $img_width_height;
	
$first_image9_data = $detail_first['image9'] != 'alpha.gif' && $detail_first['image9']  && file_exists(($_img_path.$detail_first['image9']) ) == 1 ? getimagesize($_img_path.$detail_first['image9']) : $img_width_height;
	
$first_image10_data = $detail_first['image10'] != 'alpha.gif' && $detail_first['image10']  && file_exists(($_img_path.$detail_first['image10']) ) == 1 ? getimagesize($_img_path.$detail_first['image10']) : $img_width_height;
	
$first_extend_img_data = $detail_first['extend_img'] != 'alpha.gif' && $detail_first['extend_img']  && file_exists(($_img_path.$detail_first['extend_img']) ) == 1 ? getimagesize($_img_path.$detail_first['extend_img']) : $img_width_height;

$first_banner_data = $detail_first['banner'] != 'alpha.gif' && $detail_first['banner']  && file_exists(($_img_path.$detail_first['banner']) ) == 1 ? getimagesize($_img_path.$detail_first['banner']) : $img_width_height;


?>